package com.applicationLayer.formbean;

import java.util.Date;

import com.common.entity.Path;
import com.sun.istack.internal.NotNull;

public class ListPathForm {
	  
	@NotNull
		private int id_path;
		private float price;
		private int nb_places;
		private Date date;
		private String depart_town;
		private String arrival_town;
	
	public ListPathForm(){
		
	}
		
	public ListPathForm(Path path,String departure,String arrival){
		id_path=path.getId_path();
		price=path.getPrice();
		nb_places=path.getNb_places();
		date=path.getDate();
		setDepart_town(departure);
		setArrival_town(arrival);
	}
	
	/** GETTER **/

	public int getId_path() {
		return id_path;
	}
	
	public float getPrice() {
		return price;
	}

	public int getNb_places() {
		return nb_places;
	}
	
	public Date getDate() {
		return date;
	}
	
	public String getDepart_town() {
		return depart_town;
	}

	public String getArrival_town() {
		return arrival_town;
	}

	
	/** SETTER **/
	
	public void setId_path(int id_path) {
		this.id_path = id_path;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public void setNb_places(int nb_places) {
		this.nb_places = nb_places;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public void setDepart_town(String depart_town) {
		this.depart_town = depart_town;
	}
	
	public void setArrival_town(String arrival_town) {
		this.arrival_town = arrival_town;
	}
}
